package graph.model;

/**
 * Represents an edge of a graph.
 *
 * @author shankar
 *
 */
public class Edge {
	int src;
	int dest;
	int weight;

	public Edge(int src, int dest) {
		this.src = src;
		this.dest = dest;
	}

	public Edge(int weight, int src, int dest) {
		this.weight = weight;
		this.src = src;
		this.dest = dest;
	}

	public int getSrc() {
		return src;
	}

	public void setSrc(int src) {
		this.src = src;
	}

	public int getDest() {
		return dest;
	}

	public void setDest(int dest) {
		this.dest = dest;
	}

	public int getWeight() {
		return weight;
	}

	public void setWeight(int weight) {
		this.weight = weight;
	}

}
